package com.qianfeng.service.impl;

import com.qianfeng.entry.YQAddEntry;
import com.qianfeng.entry.YQComEntry;
import com.qianfeng.entry.YQMapEntry;
import com.qianfeng.mapper.YQMapper;
import com.qianfeng.service.YQService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YQServiceImpl implements YQService {
    //添加注解,自动生成对象
    @Autowired(required = false)
    private YQMapper yqMapper;
//    @Autowired(required = false)
//    private UserDOMapper userDOMapper;
    @Override
    public List<YQMapEntry> mapYiQings(String startDate, String endDate) {
        return  yqMapper.mapYiQings(startDate,endDate);
    }

    @Override
    public List<YQAddEntry> addYiQings(int interval) {
        return yqMapper.addYiQings(interval);
    }

    @Override
    public List<YQComEntry> addComYiQings(int interval) {
        return yqMapper.addComYiQings(interval);
    }
}
